package com.example.testdb3.entiry.dto;

import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
public class UserInfoPageDto implements Serializable {


    private static final long serialVersionUID = -1242493306307174688L;

    // @Value(value = "1")
    private Integer pageNum;

    // @Value(value = "5")
    // @RequestParam(defaultValue = "1")
    // @Min(value = 1,message = "每页查询数量不能小于1")
    private Integer pageSize;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime startTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endTime;
}
